<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', 'HomeController@showWelcome');
Route::controller('/users','UserController');
Route::get('/error', function()
{
    return Redirect::to('/test')->with('message', 'Login Failed');
});
Route::get('/test',function(){
    //var_dump($message);
});
Route::any('foo/{id}','HomeController@showWelcome')->where('id','[0-9]+');
Route::resource('photo','PhotoController');
